<?php

Yii::import('zii.widgets.CPortlet');

class ProductList extends CPortlet
{
	public $title='Виды продукции';

	protected function renderContent()
	{
		$products=CActiveRecord::model('Product')->findAll();

		foreach($products as $product)
		{
			$link=CHtml::link(CHtml::encode($product->ut_product_name), array('calc/index','product'=>$product->ut_product_id));
			echo CHtml::tag('li', array(
				//'class'=>'tag',
		//		'style'=>"font-size:{$weight}pt",
			), $link)."\n";
		}
	}
}